package cn.tedu.property_management_system.entity.VO;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class MeterVO implements Serializable {

  private String  houseNumber;

  private String  expenseType;
  //本次度数
  private Long currentDegree;
  /**
   * 抄表时间
   */
  @JsonSerialize(using = LocalDateTimeSerializer.class)//序列化
  @JsonDeserialize(using = LocalDateTimeDeserializer.class)//反序列化
  private LocalDateTime meterReadingTime;
  /**
   * 抄表员
   */
  private String  meterReader;

  private String remarks;
  private Long time1;

}
